package com.lg.erp.service.impl.wuwubu;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lg.erp.entity.wuwuub.CheckProduct;
import com.lg.erp.mapper.wuwubu.CheckProductMapper;
import com.lg.erp.service.wuwubu.ICheckProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/*
* 质量追溯 service服务层
* */
@Service
public class CheckProductByIdImpl extends ServiceImpl<CheckProductMapper, CheckProduct> implements ICheckProductService {

    @Autowired
    private CheckProductMapper checkProductMapper;


    @Override
    public CheckProduct getCheckProductById(String id) {
        return checkProductMapper.selectCheckByProductId(id);
    }

    @Override
    public IPage<CheckProduct> getCheckProduct(Page<CheckProduct> page) {
        return checkProductMapper.selectCheckProduct(page);
    }

    @Override
    public List<CheckProduct> checkFindById(String id) {
        return checkProductMapper.checkFindById(id);
    }


}
